# Author:	gong_libin
# Date:		2017_11_01

CC ?= g++
CFLAGS ?= -g -Wall

CM_ENV ?= $(shell pwd)/../..
CM_BIN ?= $(CM_ENV)/bin
CM_INC ?= $(CM_ENV)/inc
CM_SRC ?= $(CM_ENV)/src

CM_GLIB ?= /usr/lib64
CM_GINC ?= /usr/include/CmInc

CM_OBJECTS =				\
	CmLogger.o			\
	CmConfig.o			\
	CmProJsn.o			\
	CmEvent.o			\
	CmTrans.o			\
	CmAdmin.o			\
	CmProPb.o

all: $(CM_OBJECTS)

$(CM_OBJECTS): %.o: %.cpp
	$(CC) -c $(CFLAGS) -I$(CM_INC) -I$(CM_GINC) $< -o $@

clean:
	rm -rf $(CM_OBJECTS)
